package com.ruoyi.storage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.storage.mapper.ExitDetailMapper;
import com.ruoyi.storage.domain.ExitDetail;
import com.ruoyi.storage.service.IExitDetailService;

/**
 * 出库详情Service业务层处理
 * 
 * @author 庞一恺
 * @date 2025-01-23
 */
@Service
public class ExitDetailServiceImpl implements IExitDetailService 
{
    @Autowired
    private ExitDetailMapper exitDetailMapper;

    /**
     * 查询出库详情
     * 
     * @param itemId 出库详情主键
     * @return 出库详情
     */
    @Override
    public ExitDetail selectExitDetailByItemId(String itemId)
    {
        return exitDetailMapper.selectExitDetailByItemId(itemId);
    }

    /**
     * 查询出库详情列表
     * 
     * @param exitDetail 出库详情
     * @return 出库详情
     */
    @Override
    public List<ExitDetail> selectExitDetailList(ExitDetail exitDetail)
    {
        return exitDetailMapper.selectExitDetailList(exitDetail);
    }

    /**
     * 新增出库详情
     * 
     * @param exitDetail 出库详情
     * @return 结果
     */
    @Override
    public int insertExitDetail(ExitDetail exitDetail)
    {
        return exitDetailMapper.insertExitDetail(exitDetail);
    }

    /**
     * 修改出库详情
     * 
     * @param exitDetail 出库详情
     * @return 结果
     */
    @Override
    public int updateExitDetail(ExitDetail exitDetail)
    {
        return exitDetailMapper.updateExitDetail(exitDetail);
    }

    /**
     * 批量删除出库详情
     * 
     * @param itemIds 需要删除的出库详情主键
     * @return 结果
     */
    @Override
    public int deleteExitDetailByItemIds(String[] itemIds)
    {
        return exitDetailMapper.deleteExitDetailByItemIds(itemIds);
    }

    /**
     * 删除出库详情信息
     * 
     * @param itemId 出库详情主键
     * @return 结果
     */
    @Override
    public int deleteExitDetailByItemId(String itemId)
    {
        return exitDetailMapper.deleteExitDetailByItemId(itemId);
    }
}
